import {Mandarin as zh} from 'flatpickr/dist/l10n/zh.js';

const dateConfig = {
    wrap: true, // set wrap to true only when using 'input-group'
    altFormat: 'Y-m-d',
    altInput: true,
    locale: zh,
    dateFormat: 'Y-m-d'
},
defaultDate = `${new Date().getFullYear()}-
               ${new Date().getMonth() + 1 < 10 ? '0' + (new Date().getMonth() + 1) : (new Date().getMonth() + 1)}-
               ${new Date().getDate() + 1 < 10 ? '0' + new Date().getDate() : new Date().getDate()}`;

export { dateConfig, defaultDate };
